package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.NetDevice;
import com.wanlian.netty.msg.Device.model.TwoAndFiveWifiInfo;
import com.wanlian.netty.msg.MsgType;

/**
 * 设备限速
 */
public class DeviceLimitSetMsg extends BaseMsg {
    private NetDevice netDevice;

    public DeviceLimitSetMsg() {
        super();
        this.setType(MsgType.DEVICE_LIMITSPEED_SET);
    }

    public NetDevice getNetDevice() {
        return netDevice;
    }

    public void setNetDevice(NetDevice netDevice) {
        this.netDevice = netDevice;
        this.setContent(JsonStringUtil.writeValueAsString(netDevice));
    }
}
